﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RukouMVC.Models
{
    public class UserRepository 
    {
        RukouDataContext rdc = new RukouDataContext();


        public User FindUserByEmail(string email)
        {
            User user = rdc.Users.SingleOrDefault(u=>u.Email==email);
            return user;
        }
    }
}
